﻿using System;

using System.Collections.Generic;
using System.Text;
using MDAControlsFramework;
using MDAControlsFramework.Helpers;

namespace MDACalendar.CalendarControls {
	class ControlDayListHead: MDALabel {
		public override void Initialize() {
			base.Initialize();

			SetDataChangeEvent(this, "dayListContainer", SetText);
		}

		public void SetText(object sender, MDADataChangeArgs e) {
			this.Text = Settings.GetDateTime(e.NewValue).ToString("dd. MMMM yyyy");
			this.Invalidate();
		}
	}
}
